import request from '@/utils/request'

//  获取面经列表
export const getArticle = params =>
  request.get('/interview/query', { params })

// 获取详情
export const getDetail = id =>
  request.get('/interview/show', { params: { id } })

// 获取收藏和喜爱的地址
export const getCollectsOrLikes = params =>
  request.get('/interview/opt/list', { params })

// 修改地址
export const updateCollectsOrLikes = data =>
  request.post('/interview/opt', data)
